<?php
//后台用户
$this->group(['domain' => env('DOMAIN_ADMIN'),'prefix' => 'config/admin/'], function() {

    $this->get('/view/{id}', 'AdminUserController@getAdmin')->where('id','[0-9]+');
    $this->get('/view/all/role', 'AdminUserController@getRoleAll');
    $this->get('/view/list', 'AdminUserController@getLists');
    $this->get('/view/check/name', 'AdminUserController@checkName');

	$this->post('/update', 'AdminUserController@postUpdate');

	$this->delete('/delete/{id}', 'AdminUserController@deleteOne')->where('id','[0-9]+');
});